<include file="public@header" />
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li><a href="{:url('PlayerManage/blockIpList')}">已封IP列表</a></li>
        <li class="active"><a href="{:url('Operate/blockIpLog')}">封IP记录</a></li>
    </ul>
    <form class="search_form" method="get" action="{:url('blockIpLog')}">
        <div class="well form-inline margin-top-20">
            IP：
            <input type="text" class="form-control" name="ip" style="width:150px;" value="{:input('request.ip/s','')}" placeholder="输入ip">
            操作时间：
            <input id="sDay" class="form-control js-date" style="width: 105px;" type="text" value="{$sDay}" name="sDay">
            ~
            <input id="eDay" class="form-control js-date" style="width: 105px;" type="text" value="{$eDay}" name="eDay">
            <input type="submit" class="btn btn-primary" value="搜索" />
        </div>
        <table class="table table-hover table-bordered">
            <thead>
            <tr>
                <th style="text-align: center">IP</th>
                <th style="text-align: center">IP地址</th>
                <th style="text-align: center">描述</th>
                <th style="text-align: center">操作记录</th>
            </tr>
            </thead>
            <tbody>
            <foreach name="data" item="vo">
                <tr>
                    <td>{$vo.value}</td>
                    <td>{:getIpFromAddress($vo["value"])}</td>
                    <td>
                        <php>
                            $operArr = json_decode($vo["oper_str"],true);
                            echo $operArr["reason"];
                        </php>
                    </td>
                    <td>
                        {$vo.admin}<br/>
                        {$vo.oper_time|date="Y-m-d H:i:s"}
                    </td>
                </tr>
            </foreach>
            </tbody>
        </table>
        <div class="pagination">{$page}</div>
    </form>
</div>
<include file="public@footer" />